libxl: pass gfx_passthru parameter to QEMU
authorAllen Kay <allen.m.kay@intel.com>
Wed, 2 Feb 2011 17:06:36 +0000 (17:06 +0000)
committerAllen Kay <allen.m.kay@intel.com>
Wed, 2 Feb 2011 17:06:36 +0000 (17:06 +0000)
Pass gfx_passthru parameter to QEMU.  Keep it boolean for now as QEMU
does not expect any other integer value.

Signed-off-by: Allen Kay <allen.m.kay@intel.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_dm.c

index 3bef49aedcd8f0d0f390cedbc6e4035d583451f7..8d5dc423c9f637df2ad568d9f20325ad9fe05998 100644 (file)
@@ -148,6 +148,9 @@ static char ** libxl_build_device_model_args_old(libxl__gc *gc,
         if ( ioemu_vifs == 0 ) {
             flexarray_vappend(dm_args, "-net", "none", NULL);
         }
+        if (info->gfx_passthru) {
+            flexarray_append(dm_args, "-gfx_passthru");
+        }
     }
     if (info->saved_state) {
         flexarray_vappend(dm_args, "-loadvm", info->saved_state, NULL);
@@ -281,6 +284,9 @@ static char ** libxl_build_device_model_args_new(libxl__gc *gc,
             flexarray_append(dm_args, "-net");
             flexarray_append(dm_args, "none");
         }
+        if (info->gfx_passthru) {
+            flexarray_append(dm_args, "-gfx_passthru");
+        }
     }
     if (info->saved_state) {
         flexarray_append(dm_args, "-loadvm");